//
// Created by summerday on 2021/6/5.
//

#ifndef C_PROJECT_STACK_H
#define C_PROJECT_STACK_H

#include "cstdio"
#include "iostream"

using namespace std;

typedef struct LinkNode{
    int data;
    struct LinkNode* next;
} LinkNode, *LinkStack;

void initStack(LinkStack &s);
bool push(LinkStack &s, int x);
bool pop(LinkStack &s, int &x);
bool empty(LinkStack &s);
bool getTop(LinkStack s, int &x);
void print(LinkStack s);


#endif //C_PROJECT_STACK_H
